"""
画布设置
"""
import matplotlib.pyplot as plt
import numpy as np

# 设置画布
# plt.figure(
#     "test_01",
#     figsize=(5,3),
#     # dpi=500, # 分辨率,绘制东西比较多的时候可以设置
# )
# plt.show()

# ary1 = np.arange(1,10).reshape((3,3))
# print(ary1)
plt.figure("Subplot Layout",facecolor="lightgray")
for i in range(1,10):
    plt.subplot(3,3,i)
    plt.text(0.5,0.5,i,size=30,ha="center",va="center")
    plt.xticks([])
    plt.yticks([])
plt.show()